Skip to contentSkip to conversation

Change in openvpn[master]: Add missing EVP_KDF_CTX_free in ssl_tls1_PRF

Openvpn-devel In review plaisthos (Code Review) 2 participants 6 messages Apr 30, 2024 – May 1, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1714486272000.I5d70198f6adbee8add619ee8a0bd6b5b1f61e506@...2715...

#1 lore raw

Attention is currently required from: flichtenheld.

Hello flichtenheld,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/581?usp=email

to review the following change.

Change subject: Add missing EVP_KDF_CTX_free in ssl_tls1_PRF
......................................................................

Add missing EVP_KDF_CTX_free in ssl_tls1_PRF

This is just missing in the function. Found by clang+ASAN.

Change-Id I5d70198f6adbee8add619ee8a0bd6b5b1f61e506

---
M src/openvpn/crypto_openssl.c

1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/81/581/1

src/openvpn/crypto_openssl.c +1 -0
index b2c4eb6..61c6518 100644
@@ -1372,6 +1372,7 @@
 err:
     ret = false;
 out:
+    EVP_KDF_CTX_free(kctx);
     EVP_KDF_free(kdf);
 
     return ret;

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/581?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5d70198f6adbee8add619ee8a0bd6b5b1f61e506
Gerrit-Change-Number: 581
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/581?usp=email )

Change subject: Add missing EVP_KDF_CTX_free in ssl_tls1_PRF
......................................................................

Patch Set 1: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/581?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5d70198f6adbee8add619ee8a0bd6b5b1f61e506
Gerrit-Change-Number: 581
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Tue, 30 Apr 2024 15:46:46 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#3 lore raw

PATCH 1/1 Add missing EVP_KDF_CTX_free in ssl_tls1_PRF

In reply to a message not in the archive

From: Arne Schwabe <[email protected]...>

This is just missing in the function. Found by clang+ASAN.

Change-Id I5d70198f6adbee8add619ee8a0bd6b5b1f61e506

---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/581
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>

src/openvpn/crypto_openssl.c +1 -0
index b2c4eb6..61c6518 100644
@@ -1372,6 +1372,7 @@
 err:
     ret = false;
 out:
+    EVP_KDF_CTX_free(kctx);
     EVP_KDF_free(kdf);
 
     return ret;
#4 lore raw

[Openvpn-devel] [PATCH applied] Re: Add missing EVP_KDF_CTX_free in ssl_tls1_PRF

Mildly tested (GHA and local t_client tests which *should* excercise this code path with the libraries + peers involved).

Your patch has been applied to the master branch.

Not applied to release/2.6 as the code lacking this free() is master-only.

commit d4eb413181d1c414b854d0829f00cda5ad1e293d (master)

Author: Arne Schwabe
Date:   Wed May 1 14:18:19 2024 +0200
     Add missing EVP_KDF_CTX_free in ssl_tls1_PRF

     Signed-off-by: Arne Schwabe <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg28591.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#5 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#2) to the change originally created by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/581?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld

Change subject: Add missing EVP_KDF_CTX_free in ssl_tls1_PRF
......................................................................

Add missing EVP_KDF_CTX_free in ssl_tls1_PRF

This is just missing in the function. Found by clang+ASAN.

Change-Id I5d70198f6adbee8add619ee8a0bd6b5b1f61e506

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28591.html

---
M src/openvpn/crypto_openssl.c

1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/81/581/2

src/openvpn/crypto_openssl.c +1 -0
index b2c4eb6..61c6518 100644
@@ -1372,6 +1372,7 @@
 err:
     ret = false;
 out:
+    EVP_KDF_CTX_free(kctx);
     EVP_KDF_free(kdf);
 
     return ret;

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/581?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5d70198f6adbee8add619ee8a0bd6b5b1f61e506
Gerrit-Change-Number: 581
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#6 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/581?usp=email )

Change subject: Add missing EVP_KDF_CTX_free in ssl_tls1_PRF
......................................................................

Add missing EVP_KDF_CTX_free in ssl_tls1_PRF

This is just missing in the function. Found by clang+ASAN.

Change-Id I5d70198f6adbee8add619ee8a0bd6b5b1f61e506

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28591.html

---
M src/openvpn/crypto_openssl.c

1 file changed, 1 insertion(+), 0 deletions(-)
src/openvpn/crypto_openssl.c +1 -0
index b2c4eb6..61c6518 100644
@@ -1372,6 +1372,7 @@
 err:
     ret = false;
 out:
+    EVP_KDF_CTX_free(kctx);
     EVP_KDF_free(kdf);
 
     return ret;

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/581?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5d70198f6adbee8add619ee8a0bd6b5b1f61e506
Gerrit-Change-Number: 581
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged